﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: SpecialsEntity.cs
// 修改时间：2020-9-8 10:40:10
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Specials 的实体类.
	/// </summary>
	[Table("Specials")]
	public partial class SpecialsEntity
	{
		#region Properties
		private int? _specialID = 0;
		/// <summary>
		/// 专题ID(主键)
		/// </summary>
		[Column("SpecialID",TypeName="int")]
		[Key]
		public int? SpecialID
		{
			get {return _specialID;}
			set {_specialID = value;}
		}
		
		private System.String _specialName = string.Empty;
		/// <summary>
		/// 专题名称
		/// </summary>
		[Column("SpecialName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialName
		{
			get {return _specialName;}
			set {_specialName = value;}
		}
		
		private int? _specialCategoryID = 0;
		/// <summary>
		/// 所属专题类别ID
		/// </summary>
		[Column("SpecialCategoryID",TypeName="int")]
		public int? SpecialCategoryID
		{
			get {return _specialCategoryID;}
			set {_specialCategoryID = value;}
		}
		
		private System.String _specialDir = string.Empty;
		/// <summary>
		/// 专题目录
		/// </summary>
		[Column("SpecialDir",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialDir
		{
			get {return _specialDir;}
			set {_specialDir = value;}
		}
		
		private System.String _specialIdentifier = string.Empty;
		/// <summary>
		/// 专题标识符
		/// </summary>
		[Column("SpecialIdentifier",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialIdentifier
		{
			get {return _specialIdentifier;}
			set {_specialIdentifier = value;}
		}
		
		private System.String _specialPic = string.Empty;
		/// <summary>
		/// 专题图片地址
		/// </summary>
		[Column("SpecialPic",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialPic
		{
			get {return _specialPic;}
			set {_specialPic = value;}
		}
		
		private System.String _specialTips = string.Empty;
		/// <summary>
		/// 专题提示
		/// </summary>
		[Column("SpecialTips",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialTips
		{
			get {return _specialTips;}
			set {_specialTips = value;}
		}
		
		private System.String _specialTemplatePath = string.Empty;
		/// <summary>
		/// 专题页模板路径
		/// </summary>
		[Column("SpecialTemplatePath",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SpecialTemplatePath
		{
			get {return _specialTemplatePath;}
			set {_specialTemplatePath = value;}
		}
		
		private System.Boolean _isElite = false;
		/// <summary>
		/// 是否推荐
		/// </summary>
		[Column("IsElite",TypeName="bit")]
		public System.Boolean IsElite
		{
			get {return _isElite;}
			set {_isElite = value;}
		}
		
		private int? _orderSort = 0;
		/// <summary>
		/// 专题排序ID
		/// </summary>
		[Column("OrderSort",TypeName="int")]
		public int? OrderSort
		{
			get {return _orderSort;}
			set {_orderSort = value;}
		}
		
		private int? _openType = 0;
		/// <summary>
		/// 专题打开方式 0-原窗口 1-新窗口
		/// </summary>
		[Column("OpenType",TypeName="int")]
		public int? OpenType
		{
			get {return _openType;}
			set {_openType = value;}
		}
		
		private System.String _description = string.Empty;
		/// <summary>
		/// 专题描述
		/// </summary>
		[Column("Description",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Description
		{
			get {return _description;}
			set {_description = value;}
		}
		
		private System.Boolean _isCreateListPage = false;
		/// <summary>
		/// 列表页是否生成HTML
		/// </summary>
		[Column("IsCreateListPage",TypeName="bit")]
		public System.Boolean IsCreateListPage
		{
			get {return _isCreateListPage;}
			set {_isCreateListPage = value;}
		}
		
		private int? _listPageSavePathType = 0;
		/// <summary>
		/// 列表页生成规则
		/// </summary>
		[Column("ListPageSavePathType",TypeName="int")]
		public int? ListPageSavePathType
		{
			get {return _listPageSavePathType;}
			set {_listPageSavePathType = value;}
		}
		
		private System.String _listPagePostfix = string.Empty;
		/// <summary>
		/// 列表页生成HTML后缀
		/// </summary>
		[Column("ListPagePostfix",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ListPagePostfix
		{
			get {return _listPagePostfix;}
			set {_listPagePostfix = value;}
		}
		
		private System.String _custom_Content = string.Empty;
		/// <summary>
		/// 自设内容
		/// </summary>
		[Column("Custom_Content",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Custom_Content
		{
			get {return _custom_Content;}
			set {_custom_Content = value;}
		}
		
		private System.String _searchTemplatePath = string.Empty;
		/// <summary>
		/// 专题搜索页模板路径
		/// </summary>
		[Column("SearchTemplatePath",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SearchTemplatePath
		{
			get {return _searchTemplatePath;}
			set {_searchTemplatePath = value;}
		}
		
		private System.Boolean _isNeedCreateHtml = false;
		/// <summary>
		/// 是否有需要生成HTML的专题内容
		/// </summary>
		[Column("IsNeedCreateHtml",TypeName="bit")]
		public System.Boolean IsNeedCreateHtml
		{
			get {return _isNeedCreateHtml;}
			set {_isNeedCreateHtml = value;}
		}
		
		#endregion
	}
}
